<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2023/10/25
  Time: 16:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%request.setCharacterEncoding("UTF-8");%>
<jsp:useBean id="ps" class="jspSamples.unit5.javaBeanSamples._5_2Person" scope="page"/>
<%--<jsp:setProperty name="ps" property="*"/>--%>
<jsp:setProperty name="ps" property="name" param="newname"/>
<jsp:setProperty name="ps" property="sex" />
<jsp:setProperty name="ps" property="age" />
<%--<jsp:setProperty name="ps" property="name"/>--%>
<%--<jsp:setProperty name="ps" property="sex" />--%>
<%--<jsp:setProperty name="ps" property="age" />--%>
姓名：<jsp:getProperty property="name" name="ps" /><br>
性别：<jsp:getProperty property="sex" name="ps" /><br>
年龄：<jsp:getProperty property="age" name="ps" /><br>
</body>
</html>
